+2005-08-27 Sven Neumann <sven@gimp.org>
+
+ * configure.ac
+ * Makefile.am
+ * docs/Makefile.am
+ * docs/graphics/Makefile.am: check for inkscape and w3m which are
+ needed to build the documentation. Compile without them but bail
+ out on 'make dist'.
+
2005-08-26 Øyvind Kolås <pippin@gimp.org>
* tests/rgb_to_bgr.c: added component shuffling test
tests \
docs
-
-DIST_SUBDIRS = babl \
- tests \
- docs
-
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = babl.pc
-EXTRA_DIST = \
- .cvsignore \
+built_dist_files = \
+ README \
+ babl.pc
+
+EXTRA_DIST = $(built_dist_files) \
+ AUTHORS \
COPYING \
- ChangeLog \
- INSTALL.in \
+ INSTALL \
NEWS \
- babl.pc.in \
- autogen.sh
+ ChangeLog \
+ autogen.sh \
+ babl.pc.in
+
+DISTCLEANFILES = $(built_dist_files)
-BUILT_EXTRA_DIST = \
- README \
- babl.pc
.PHONY: snapshot
-README:
- echo "Eek!" > $@
+
+if HAVE_W3M
+dist-check-w3m:
+
+README: docs/index.html
+ $(W3M) -cols 72 -dump $< > $@
+else
+dist-check-w3m:
+ @echo "*** w3m must be available in order to make dist"
+ @false
+endif
+
snapshot:
$(MAKE) dist distdir=$(PACKAGE)-`date +"%Y%m%d"`
if test $(srcdir) = .; then :; else \
rm -f $(BUILT_EXTRA_DIST); \
fi
+
+dist-hook: dist-check-w3m
esac
fi
+AC_PATH_PROG(INKSCAPE, inkscape, no)
+AM_CONDITIONAL(HAVE_INKSCAPE, test "x$INKSCAPE" != "xno")
+
+AC_PATH_PROG(W3M, w3m, no)
+AM_CONDITIONAL(HAVE_W3M, test "x$W3M" != "xno")
+
dnl ===========================================================================
AC_CONFIG_FILES(
all: $(HTML_FILES)
-index.html: index-static.html $(top_builddir)/tests/babl_html_dump ../AUTHORS ../NEWS
+index.html: index-static.html $(top_builddir)/tests/babl_html_dump $(top_srcdir)/AUTHORS $(top_srcdir)/NEWS
cp $< $@
(TMPFILE=`tempfile`;\
$(top_builddir)/tests/babl_html_dump > $$TMPFILE;\
$(top_srcdir)/docs/tools/xml_insert.sh $@ AUTHORS $(top_srcdir)/AUTHORS
$(top_srcdir)/docs/tools/xml_insert.sh $@ NEWS $(top_srcdir)/NEWS
-
- w3m -cols 72 -dump $@ > ../README
distclean-local:
if test $(srcdir) = .; then :; else \
+if HAVE_INKSCAPE
PNG_FILES = \
babl-a4poster.png \
babl-16x16.png \
babl-48x48.png
+endif
SVG_FILES = \
babl-a4poster.svg \
all: $(MAINTAINERCLEANFILES)
-%.png : %.svg
- inkscape -e $@ $<
+
+if HAVE_INKSCAPE
+dist-check-inkscape:
+
+%.png: %.svg
+ $(INSCAPE) -e $@ $<
# the png version of the a4 poster is used as a webgraphic
# , thus it is rendered with the background alpha set to
# 0.0
babl-a4poster.png: babl-a4poster.svg
- inkscape -e $@ $< -w 256 -y 0
+ $(INSCAPE) -e $@ $< -w 256 -y 0
+else
+dist-check-inkscape:
+ @echo "*** inkscape must be available in order to make dist"
+ @false
+endif
+
+dist-hook: dist-check-inkscape
grayscale_to_rgb
introspect
nop
+rgb_to_bgr
rgb_to_lab_to_rgb
rgb_to_ycbcr
rgb_to_ycbcr_to_rgb